package com.frxuexi.base.net

import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST
import retrofit2.http.Query

interface ApiService {

    @POST("/sysUser/loginUser")
    suspend fun login(@Body body: RequestBody):Res

    @POST("/sysParking/selParking")
    suspend fun getAllParks():Res

    @POST("/sysColor/selColor")
    suspend fun getColors():Res

    @POST("/sysParking/addParking")
    suspend fun addPark(@Body body: RequestBody):Res

    @POST("/sysParking/delParking")
    suspend fun deletePark(@Body body: RequestBody):Res

    @POST("/sysParking/updateParking")
    suspend fun updatePark(@Body body: RequestBody):Res

    @POST("/sysRepair/selAllRepair")
    suspend fun getAllRepairs():Res

    @POST("/sysRepair/selUserRepair")
    suspend fun getMyRepairs(@Body body: RequestBody):Res

    @POST("/sysRepair/addRepair")
    suspend fun addRepair(@Body body: RequestBody):Res

    @POST("/sysRepair/selAppointRepair")
    suspend fun appointRepair(@Body body: RequestBody):Res

//    suspend fun getNews(@Query("page") page:Int):ResNews<newsl>

    @POST("/sysVisitor/selVisitor")
    suspend fun getVisitors(@Body body: RequestBody):Res

    @POST("/sysVisitor/addVisitor")
    suspend fun addVisitor(@Body body: RequestBody):Res

    @POST("/sysVisitor/delVisitor")
    suspend fun delVisitor(@Body body: RequestBody):Res

    @POST("/notice/selNotice")
    suspend fun getNotices(@Body body: RequestBody):Res

    @POST("/notice/addNotice")
    suspend fun addNotice(@Body body: RequestBody):Res

    @POST("/sysNews/selAllNews")
    suspend fun getAllNews(@Body body: RequestBody):Res


    @POST("/sysNews/addNews")
    suspend fun addNews(@Body body: RequestBody):Res

    @POST("/SysSign/startSign")
    suspend fun sign(@Body body: RequestBody):Res

    @POST("/SysSign/selMonth")
    suspend fun getSigns(@Body body: RequestBody):Res

    @POST("/sysPatrol/selALLPatroles")
    suspend fun selALLPatroles():Res

    @POST("/sysPatrol/selPatrol")
    suspend fun selPatrol(@Body body: RequestBody):Res


    @POST("/sysPatrol/selSysPoint")
    suspend fun selSysPoint():Res
}